package com.yuanfeng.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.activity.dto.ActivityExplainParamDTO;
import com.yuanfeng.activity.entity.ActivitySpinwinLuckyDrawTimesEntity;
import com.yuanfeng.activity.vo.DrawTimesDetailsVO;
import com.yuanfeng.activity.vo.SpinwinLuckyDrawVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Entity com.yuanfeng.activity.entity.ActivitySpinwinLuckyDrawTimes
 */
@Mapper
public interface ActivitySpinwinLuckyDrawTimesMapper extends BaseMapper<ActivitySpinwinLuckyDrawTimesEntity> {

    /**
     * 查询大转盘用户抽奖次数
     * @param param
     * @return
     */
    DrawTimesDetailsVO selectDrawTimes(@Param("param") ActivityExplainParamDTO param);

    /**
     * 分页查询大转盘用户抽奖次数
     * @param page
     * @param param
     * @return
     */
    IPage<ActivitySpinwinLuckyDrawTimesEntity> selectLuckyDrawTimesList(IPage page,@Param("param") Map<String, Object> param);

    /**
     * 新增大转盘用户抽奖次数
     * @param param
     */
    void insertDrawTimes(ActivityExplainParamDTO param);

    /**
     * 新增大转盘用户抽奖次数
     * @param luckyDraw
     */
    void insertDrawTimes2(SpinwinLuckyDrawVO luckyDraw);

    /**
     * 更新大转盘用户抽奖次数
     * @param luckyDraw
     */
    void updateDrawTimes(SpinwinLuckyDrawVO luckyDraw);
}




